<%@ codepage = 65001%>
<% Option Explicit 
		Response.Expires = -1
%>
<!--#Include Virtual="/recruiter/_Kernel/_Include.inc"-->
<% 
	Call DMBOKernelInit(DMDialog)
	Call LangPackStart("Applicant_LP.xml")
   	Dim FieldStr, GetJobPositionName, GetJobEditable , sJobName 

	Call GetJobInfo
	
	FieldStr = GetFieldStr
	'Response.Write Request.QueryString("JPostType")
%> 
<html xmlns:Dimension>
<head> 
<!--#Include Virtual="/_lib/header/recruiter_dialog.inc"-->
<title>JobsDB Dimension</title>
<link rel="stylesheet" type="text/css" href="/_lib/css/root.css?<%=Global_VersionNo%>"/>
<script language="javascript" src="/_lib/js/Common.js?<%=Global_VersionNo%>"></script>
<script language="javascript" src="/_lib/js/FF.js?<%=Global_VersionNo%>"></script>
<script language="javascript" src="/_lib/JSControls/JSDataGrid_V2.js?<%=Global_VersionNo%>"></script>
<script language="javascript" src="/_lib/JSControls/TreeView.js?<%=Global_VersionNo%>"></script>
<script src="Applicant.js?<%=Global_VersionNo%>"></script>
<script src="/recruiter/CandidateProfile_V2/Layout.js?<%=Global_VersionNo%>"></script> 
<script language="Javascript">
function DisplayLanguage(sValueInput){
	switch(sValueInput){
		case "LP0002": return "<%= Global_oLangPack.selectSingleNode("LP0002").text %>";
		case "LP0005": return "<%= Global_oLangPack.selectSingleNode("LP0005").text %>";
		case "LP0006": return "<%= Global_oLangPack.selectSingleNode("LP0006").text %>"; 
		case "LP0033": return "<%= Global_oLangPack.selectSingleNode("LP0033").text %>";
		case "LP0034": return "<%= Global_oLangPack.selectSingleNode("LP0034").text %>";
		case "LP0037": return "<%= Global_oLangPack.selectSingleNode("LP0037").text %>";
		case "LP0038": return "<%= Global_oLangPack.selectSingleNode("LP0038").text %>";
		case "LP0039": return "<%= Global_oLangPack.selectSingleNode("LP0039").text %>";
		case "LP0040": return "<%= Global_oLangPack.selectSingleNode("LP0040").text %>";
		case "LP0041": return "<%= Global_oLangPack.selectSingleNode("LP0041").text %>";
		case "LP0042": return "<%= Global_oLangPack.selectSingleNode("LP0042").text %>";
		case "LP0043": return "<%= Global_oLangPack.selectSingleNode("LP0043").text %>";
		case "LP0044": return "<%= Global_oLangPack.selectSingleNode("LP0044").text %>";
		case "LP0047": return "<%= Global_oLangPack.selectSingleNode("LP0047").text %>";
		case "LP0048": return "<%= Global_oLangPack.selectSingleNode("LP0048").text %>";
		case "LP0049": return "<%= Global_oLangPack.selectSingleNode("LP0049").text %>";
		case "LP0050": return "<%= Global_oLangPack.selectSingleNode("LP0050").text %>";
		case "LP0051": return "<%= Global_oLangPack.selectSingleNode("LP0051").text %>";
		case "LP0052": return "<%= Global_oLangPack.selectSingleNode("LP0052").text %>";
		case "LP0053": return "<%= Global_oLangPack.selectSingleNode("LP0053").text %>";
		case "LP0059": return "<%= Global_oLangPack.selectSingleNode("LP0059").text %>";
		case "LP0060": return "<%= Global_oLangPack.selectSingleNode("LP0060").text %>";
		case "LP0061": return "<%= Global_oLangPack.selectSingleNode("LP0061").text %>";
		case "LP0064": return "<%= Global_oLangPack.selectSingleNode("LP0064").text %>";
		case "LP0065": return "<%= Global_oLangPack.selectSingleNode("LP0065").text %>";
		case "LP0066": return "<%= Global_oLangPack.selectSingleNode("LP0066").text %>";
		case "LP0067": return "<%= Global_oLangPack.selectSingleNode("LP0067").text %>";
		case "LP0068": return "<%= Global_oLangPack.selectSingleNode("LP0068").text %>";
		case "LP0069": return "<%= Global_oLangPack.selectSingleNode("LP0069").text %>";
		case "LP0072": return "<%= Global_oLangPack.selectSingleNode("LP0072").text %>";
		case "LP0073": return "<%= Global_oLangPack.selectSingleNode("LP0073").text %>";
		case "LP0074": return "<%= Global_oLangPack.selectSingleNode("LP0074").text %>";
		case "LP0075": return "<%= Global_oLangPack.selectSingleNode("LP0075").text %>";
		case "LP0076": return "<%= Global_oLangPack.selectSingleNode("LP0076").text %>";
		case "LP0077": return "<%= Global_oLangPack.selectSingleNode("LP0077").text %>";
		case "LP0078": return "<%= Global_oLangPack.selectSingleNode("LP0078").text %>";
		case "LP0080": return "<%= Global_oLangPack.selectSingleNode("LP0080").text %>";
		case "LP0081": return "<%= Global_oLangPack.selectSingleNode("LP0081").text %>";
		case "LP0082": return "<%= Global_oLangPack.selectSingleNode("LP0082").text %>";
		case "LP0083": return "<%= Global_oLangPack.selectSingleNode("LP0083").text %>";
		case "LP0084": return "<%= Global_oLangPack.selectSingleNode("LP0084").text %>";
		case "LP0085": return "<%= Global_oLangPack.selectSingleNode("LP0085").text %>";
		case "LP0086": return "<%= Global_oLangPack.selectSingleNode("LP0086").text %>";
		case "LP0087": return "<%= Global_oLangPack.selectSingleNode("LP0087").text %>";
		case "LP0088": return "<%= Global_oLangPack.selectSingleNode("LP0088").text %>";
		case "LP0089": return "<%= Global_oLangPack.selectSingleNode("LP0089").text %>";
		case "LP0091": return "<%= Global_oLangPack.selectSingleNode("LP0091").text %>";
		case "LP0092": return "<%= Global_oLangPack.selectSingleNode("LP0092").text %>";
		case "LP0093": return "<%= Global_oLangPack.selectSingleNode("LP0093").text %>";
		case "LP0095": return "<%= Global_oLangPack.selectSingleNode("LP0095").text %>";
		case "LP0096": return "<%= Global_oLangPack.selectSingleNode("LP0096").text %>";
		case "LP0097": return "<%= Global_oLangPack.selectSingleNode("LP0097").text %>";
		case "LP0098": return "<%= Global_oLangPack.selectSingleNode("LP0098").text %>";
		case "LP0099": return "<%= Global_oLangPack.selectSingleNode("LP0099").text %>";
		
		case "LP0100": return "<%= Global_oLangPack.selectSingleNode("LP0100").text %>";
		case "LP0101": return "<%= Global_oLangPack.selectSingleNode("LP0101").text %>";
		case "LP0102": return "<%= Global_oLangPack.selectSingleNode("LP0102").text %>";
		case "LP0103": return "<%= Global_oLangPack.selectSingleNode("LP0103").text %>";
		case "LP0104": return "<%= Global_oLangPack.selectSingleNode("LP0104").text %>";
		case "LP0105": return "<%= Global_oLangPack.selectSingleNode("LP0105").text %>";
		case "LP0106": return "<%= Global_oLangPack.selectSingleNode("LP0106").text %>";
		case "LP0107": return "<%= Global_oLangPack.selectSingleNode("LP0107").text %>";
		case "LP0108": return "<%= Global_oLangPack.selectSingleNode("LP0108").text %>";
		default : return "";
	}
}

function Generate_TreeView(GrdID,jobID,applicantType,folderType,random,i)
{
	var XmlSrc=((applicantType==1)?'XML_Folder.asp?JobID=' + jobID + '&' + random:'XML_Folder_Intranet.asp?JobID=' + jobID + '&' + random);
	var o=new JSTreeview(GrdID);
		o.aspFilePath = XmlSrc;	
		//o.defaultSelectedItemValues="2";
		o.defaultSelectedItem=i.toString();		
		o.BranchImg="/_lib/images/Common/spacer.gif";
		o.LeafImg="/_lib/images/Common/spacer.gif";
		o.LastLeafImg="/_lib/images/Common/spacer.gif";
		o.MiddleClosedImg="/_lib/images/Common/spacer.gif"; 
		o.MiddleExpandedImg="/_lib/images/Common/spacer.gif";
		o.LastClosedImg="/_lib/images/Common/spacer.gif";
		o.LastExpandedImg = "/_lib/images/Common/spacer.gif"; 
		
		switch(applicantType) {
		case 1:
			o.nodeIdPrefix = "treemenu_";
			break;
		case 2:
			o.nodeIdPrefix = "treeMenu_Intranet_";
			break;
		}
		
		o.Icons=[
			{key:'',imgPath:'/_lib/images/treemenu/folder_middle_empty.gif'},
			{key:'newapplicant',imgPath:'/_lib/images/treemenu/newapplicant_middle_empty.gif'},
			{key:'shortlist',imgPath:'/_lib/images/treemenu/shortlist_middle_empty.gif'},
			{key:'lowpriority',imgPath:'/_lib/images/treemenu/lowpriority_middle_empty.gif'},
			{key:'notqualified',imgPath:'/_lib/images/treemenu/notqualified_middle_empty.gif'},
			{key:'Withdraw',imgPath:'/_lib/images/treemenu/withdraw_middle_empty.gif'},
			{key:'manualinput',imgPath:'/_lib/images/treemenu/manualinput_middle_empty.gif'},
			{key:'offermade',imgPath:'/_lib/images/treemenu/offermade_middle_empty.gif'},
			{key:'hired',imgPath:'/_lib/images/treemenu/hired_middle_empty.gif'},
			{key:'blacklist',imgPath:'/_lib/images/treemenu/blackList_middle_empty.gif'},<%If CheckHasProtectedFolder = 1 Then%>
			{key:'recycle',imgPath:'/_lib/images/treemenu/recycle_middle_empty.gif'},
			{key:'protected',imgPath:'/_lib/images/treemenu/protected_bottom_empty.gif'}];<%Else%>
			{key:'recycle',imgPath:'/_lib/images/treemenu/recycle_bottom_empty.gif'}];<%End If%>
		
		o.renderControl(); 
		
		o.onSelectItem=function()
		{
			if(o.ReturnXmlDoc!=null) {
				currentFolderID = o.ReturnXmlDoc.getAttribute("value");
			}
			else {
				currentFolderID = 0;
			}
			
			highlightApp = applicantType;
			highlightID = document.getElementById(o.nodeIdPrefix.substring(0, o.nodeIdPrefix.length-1)).jtv.hCell.childNodes[1].id.replace("folder_","")-1;

			ChangeApplicationType(applicantType);
			repaintTable();
			setTimeout("HandleActionButtons()",500);
			swapTreeViewHighlight();
		}
}

function resize()
{
	if(document.getElementById("jdg_hdr_grd1")!=null && document.getElementById("jdg_prgbar_grd1")!=null){
		var h = (parseInt(document.body.offsetHeight-60)-parseInt(document.getElementById("jdg_hdr_grd1").style.height)-parseInt(document.getElementById("jdg_prgbar_grd1").offsetHeight))-37;
	}
	if(document.getElementById("jdg_scroller_grd1")!=null && document.getElementById("jdg_tblh_grd1")!=null){
		document.getElementById("jdg_scroller_grd1").style.width = document.getElementById("jdg_tblh_grd1").offsetWidth;
	}
	if(document.getElementById("jdg_con_grd1")!=null && h>=0){
		document.getElementById("jdg_con_grd1").style.height = h;
	}
	if(document.getElementById("Tm")!=null && h!=undefined){
		document.getElementById("Tm").style.height = h+43;
	}
}
QueryStringInit();
</script>
</head>
<body class="baseLayout_dialog" scroll="no" oncontextmenu="return false;">
<input type="hidden" name="MR_ResumeRanking"  value="<%=IIF(GetDMAccessRight(MR_ResumeRanking), "Y", "N") %>" ID="MR_ResumeRanking">
<input type="hidden" name="JPostType" value="<% = Request.QueryString("JPostType") %>" ID="Hidden20"> 
<input type="hidden" name="EntityID" value="<% = Request.QueryString("EID") %>" ID="EntityID">
<input type="hidden" name="EID"  value="<%=Request.QueryString("EID")%>" ID="EID">
<input type="hidden" name="UR_LineManager" value="<% = GetDMAccessRight(UR_LineManager) %>" ID="Hidden22">
<input name="JobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="Hidden23">
<input name="MultiRoundAR" type="hidden" value="<%=GetDMAccessRight(MR_MultipleStage)%>" ID="Hidden24">
<input name="JobEditable" type="hidden" value="<%=GetJobEditable%>" ID="Hidden25">
<input type="hidden" name="bMessageCenter" value="<%=IIF(GetDMAccessRight(MR_MessageCenter), "Y", "N") %>" ID="Hidden26">
<input type="hidden" name="bSendToCandidate" value="<%=IIF(GetDMAccessRight(MR_SendEmailtoCandidate), "Y", "N") %>" ID="Hidden27">
<input name="MR_InternalHiring" type="hidden" value="<%=IIF(GetDMAccessRight(MR_InternalHiring), "Y", "N") %>" ID="MR_InternalHiring">
<input name="UR_InternalHiring" type="hidden" value="<%=IIF(GetDMAccessRight(UR_InternalHiring), "Y", "N") %>" ID="UR_InternalHiring">
<input name="CopytoEntityClipboard" type="hidden" value="<%=IIF(GetDMAccessRight(UR_ViewEntityClipboard) and GetDMAccessRight(UR_AddEntityClipboard),"Y","N")%>" ID="Hidden28">
<input type="hidden" name="UR_RequestInfo" value="<%=IIF(GetDMAccessRight(UR_RequestInfo) and GetDMAccessRight(MR_MultipleStage),"Y","N")%>" ID="UR_RequestInfo">
<input type="hidden" name="UR_ForwardResume" value="<%=IIF(GetDMAccessRight(MR_MessageCenter) and GetDMAccessRight(UR_ForwardResume),"Y","N")%>" ID="UR_ForwardResume">
<input type="hidden" name="UR_SendEmailtoCandidate" value="<%=IIF(GetDMAccessRight(MR_SendEmailtoCandidate) and GetDMAccessRight(UR_SendEmailtoCandidate),"Y","N")%>" ID="UR_SendEmailtoCandidate">
<!--input type="hidden" name="ForwardResume" value="<%=IIF(GetDMAccessRight(MR_MessageCenter) and GetDMAccessRight(UR_ForwardResume), "Y", "N") %>" ID="ForwardResume"-->
<input type="hidden" name="UR_AR_Lock" value="<%=GetDMAccessRight(UR_LockApplicant)%>" ID="Hidden21"/>
<input type="hidden" name="UR_AR_Delete" value="<%=GetDMAccessRight(UR_DeleteResume)%>" ID="Hidden32"/>
<input type="hidden" name="UR_AR_Blacklist" value="<%=GetDMAccessRight(UR_AllowBlackList)%>" ID="Hidden33"/>
<input type="hidden" name="UR_AR_DeleteRestore" value="<%=GetDMAccessRight(UR_DeleteResume)%>" ID="Hidden47"/>
<input type="hidden" name="UR_AR_BlacklistRestore" value="<%=GetDMAccessRight(UR_AllowBlackList)%>" ID="Hidden49"/>
<input type="hidden" name="UR_SMSNotification"  value="<%=IIF(GetDMAccessRight(UR_SMSNotification) and GetDMAccessRight(MR_SMSGateway), "Y", "N") %>" ID="UR_SMSNotification">
<input type="hidden" name="MR_AdvancedInterview"  value="<%=IIF(GetDMAccessRight(MR_AdvancedInterview), "Y", "N") %>" ID="MR_AdvancedInterview">
<input type="hidden" name="MR_ActiveEmailFeature"  value="<%=IIF(GetDMAccessRight(MR_ActiveEmailFeature), "Y", "N") %>" ID="MR_ActiveEmailFeature">
<input type="hidden" name="UpdatedLockSuccess" value="0" ID="Hidden50">
<input type="hidden" name="UpdatedLockFail" value="0" ID="Hidden51"> 
<input type="hidden" name="MR_PortalPrivateResume" value="<%=IIF(GetDMAccessRight(MR_PortalPrivateResume),"Y","N")%>" ID="Hidden52">
<input type="hidden" name="MR_ReferralProgram" id="MR_ReferralProgram" value ="<%=IIF(GetDMAccessRight(MR_ReferralProgram),"Y","N")%>" >
<input type="hidden" name="MR_AutoClassification" id="MR_AutoClassification" value="<%=IIF(GetDMAccessRight(MR_AutoClassification),"Y","N")%>" >

<script language="javascript">createLoadingDIV();</script>
<table cellspacing="0" cellpadding="0" border="0" class="baseLayout" ID="Table1">
	<tr>
		<td class="titleBar_dialog"><%=Global_oLangPack.selectSingleNode("LP0001").text %></td>
	</tr> 
	<tr height="100%"> 
		<td class="baseLayout_dialog">
			<div class="DataGrid_dialog">
			<table cellspacing="0" cellpadding="0" border="0" class="baseLayout" ID="Table2">
				<tr>
					<td class="smallText_dialog" style="border-bottom:1 solid black;"><%=GetJobPositionName%></td>
				</tr>
				<tr>
					<td>
					<div>
						<table cellspacing=0 cellpadding=0 border=0 class="baseLayout" ID="Table3">
							<tr valign="middle">
								<td id="td_menu" nowrap style="PADDING-RIGHT: 2px; PADDING-LEFT: 3px; PADDING-BOTTOM: 2px; WIDTH: 100%; PADDING-TOP: 3px; vertical-algin: middle; height:30px">
									<style>
										.menuTool	{padding:3px 1px 0 5px;height:21px;border:1px solid #fff;font-size:11px;text-align:center;font-family:tahoma;margin:0 2px 2 0;cursor:pointer;position:relative;vertical-align:middle;float:left;}
										.menuTool1	{padding:3px 1px 0 5px;height:21px;border:1px solid #333;font-size:11px;text-align:center;font-family:tahoma;margin:0 2px 2 0;cursor:pointer;position:relative;vertical-align:middle;float:left;}
										.menuButton {border:0;background:#fff;font-family:tahoma;font-size:11px;padding:0 0 0 0;margin:0 0 0 0}
									</style>
									<span id="menu_0" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"  style="width:20px;"><img id="menu_img_0" src="/_lib/images/icons/flag_2.gif" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_1" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="margin-left:-5px;width:20px;"><img id="menu_down_1" src="/_lib/images/icons/down.gif" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_16" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="width:20px;"><img id="menu_img_2" src="/_lib/images/icons/lock.gif" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_2" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="margin-left:-5px;width:20px;"><img id="menu_down_2" src="/_lib/images/icons/down.gif" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_3" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0002").text%>"  ID="Button3" NAME="Button3"><img id="menu_down_3" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_17" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="display:none;"><img id="Img1" src="/_lib/images/icons/schedule.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0079").text%>"  ID="Button1" NAME="Button14"></span>
									<span id="menu_4" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" style="width:63px;"  class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0045").text%>"  ID="Button4" NAME="Button4"></span>
									<span id="menu_5" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0046").text%>"  ID="Button5" NAME="Button5"><img id="menu_down_5" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<% If GetDMAccessRight(UR_SHLAssessment) Then %>  
									<span id="menu_19" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0094").text%>"  ID="Button19" NAME="Button19"><img id="menu_down_19" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<% End If %>
									<span id="menu_6" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0005").text%>"  ID="Button6" NAME="Button6"><img id="menu_down_6" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_7" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0006").text%>"  ID="Button7" NAME="Button7"><img id="menu_down_7" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
				<!--					<span id="menu_17" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0049").text%>"  ID="Button8" NAME="Button8"></span>
									<span id="menu_8" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="margin-left:-15px;"><img id="menu_down_8" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>       -->									
									<span id="menu_8" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0049").text%>"  ID="Button8" NAME="Button8"><img id="menu_down_8" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_9" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0004").text%>"  ID="Button9" NAME="Button9"></span>
									<% If GetDMAccessRight(UR_TransferDataMOE) and GetDMAccessRight(MR_HRISSecureDataTranMOE) Then %> 
									<span id="menu_18" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0090").text%>"  ID="Button18" NAME="Button18"><img id="menu_down_18" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<% End If %>
									<span id="menu_10" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><img id="menu_img_10" src="/_lib/images/icons/delete.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_11" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="display:none;"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0055").text%>"  ID="Button11" NAME="Button11"></span>
									<span id="menu_12" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="display:none;"><img id="menu_img_12" src="/_lib/images/icons/restore.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_13" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="display:none;"><img id="menu_img_13" src="/_lib/images/icons/restore.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
									<span id="menu_14" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);" style="display:none;"><img id="menu_img_14" src="/_lib/images/icons/print.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0054").text%>"  ID="Button14" NAME="Button14"></span>
									<span id="menu_15" class="menuTool" onmouseover="javascript:showDropDownMenu(this);" onmouseout="javascript:closeDropDownMenu(this);" onclick="javascript:showMenu(this);"><input type="button" class="menuButton" value="<%=Global_oLangPack.selectSingleNode("LP0058").text%>"  ID="Button15" NAME="Button15"><img id="menu_down_15" src="/_lib/images/icons/down.gif" align="absmiddle" style="filter:alpha(opacity=100); -moz-opacity:1;"/></span>
								</td>
							</tr>
						</table>
					</div> 
					</td>
				</tr>				
				<tr>
					<td height="100%">
					<table cellspacing="0" cellpadding="0" border="0" class="baseLayout" id="GridTable" width="100%">
						<tr height="100%">
							<td nowrap valign=top id="col_Left" style="border-top:solid 1px #000000" width="180">
								<div>
									<% 
									Dim InternetSelection, IntranetSelection
									If Request.QueryString("JPostType") = 2 Then 
										InternetSelection = -1
										IntranetSelection = 0
									Else
										InternetSelection = 0
										IntranetSelection = -1
									End If
									%> 
									<table id="Tm" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
										<tr height="20px" valign="top" id="InternetTitle" style="display:none">
											<td class="smallText_dialog" style="border-bottom:1 solid black;" bgcolor="white" nowrap><%=Global_oLangPack.selectSingleNode("LP0062").text%></td>
										</tr>
										<tr height="200px" valign="top" id="InternetMenu" style="display:none">
											<td>
											<div id="tvInter" class="treeMenu" onclick="HandleActionButtons()"><script language="javascript">Generate_TreeView("treeMenu",QueryString("JobID"),1,QueryString("FolderType"),Global_Random(),<%=InternetSelection%>);</script></div>
											</td>
										</tr>
										<tr height="20px" valign="top" id="IntranetTitle" style="display:none;">
											<td class="smallText_dialog" style="border-bottom:solid 1px #000000; border-top:solid 1px #000000" bgcolor="white" nowrap><%=Global_oLangPack.selectSingleNode("LP0063").text%></td>
										</tr>
										<% If GetDMAccessRight(UR_InternalHiring) and GetDMAccessRight(MR_InternalHiring) Then %> 
										<tr valign="top" id="IntranetMenu" style="display:none">
											<td>
											<div id="tvIntra" class="treeMenu"><script language="javascript">Generate_TreeView("treeMenu_Intranet",QueryString("JobID"),2,QueryString("FolderType"),Global_Random(),<%=IntranetSelection%>);</script></div>
											</td>
										</tr>
										<% End If %>
									</table>
								</div>
							</td>
							<td width="1px" bgcolor="#000000" style="cursor:col-resize;" onmousedown="javascript:setDrag(1000,'column');" onmouseup="resize();" nowrap></td>							
							<td height="100%" valign="top" id="Grid" width="100%">
								<div id='grd1' align='left' style='border:1px solid black;border-left:0;border-bottom:0; width:100%; height:100%;overflow:hidden;'></div>
							</td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			</div>
		</td> 
	</tr>
</table>	
<iframe  src="/_lib/blank.htm"  id="XMLSubmit" name="XMLSubmit" width="0" height="0"></iframe>
<form name="CandidateListForm" id="CandidateListForm" method="post">
<input type="hidden" name="CIDs" id="CIDs" value="" />
</form>
<form autocomplete="off "  name="XMLForm" action="Applicant_Submit.asp?<%= Global_Random %>" method="post" target="XMLSubmit" ID="Form1">
<input name="XMLAction" type="hidden" ID="Hidden1">
<input name="JobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="Hidden2">
<input name="CID" type="hidden" ID="Hidden3">
<input name="Flag" type="hidden" ID="Hidden4">
<input name="LockStatus" type="hidden" ID="Hidden5">
<input name="ETID" type="hidden" ID="Hidden6">
<input name="EID" type="hidden" value="<%=Request.QueryString("EID")%>" ID="Hidden40">
</form>
<iframe id="DeleteSubmit" name="DeleteSubmit" src="/_lib/blank.htm" width="0" height="0"></iframe>
<form name="DeleteForm" autocomplete="off" action="/recruiter/CommonDialog_V2/DeleteResume/DeleteResume_Submit.asp?<%=Global_Random%>" method="post" target="DeleteSubmit" ID="Form2">
	<input name="CID" type="hidden" ID="Hidden7">
	<input name="Action" type="hidden" value="1" ID="Hidden8">
	<input name="EID" type="hidden" value="<%=Request.QueryString("EID")%>" ID="Hidden9">
	<input name="CFID" type="hidden" ID="Hidden10">
	<input name="JobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="Hidden11">	
</form>
<iframe id="BlacklistSubmit" name="BlacklistSubmit" src="/_lib/blank.htm" width="0" height="0"></iframe>
<form name="BlacklistForm" autocomplete="off" action="/recruiter/CommonDialog_V2/BlacklistResume/BlacklistResume_Submit.asp?<%=Global_Random%>" method="post" target="BlacklistSubmit" ID="Form3">
	<input name="CID" type="hidden" ID="Hidden12">
	<input name="Action" type="hidden" value="1" ID="Hidden13">
	<input name="EID" type="hidden" value="<%=Request.QueryString("EID")%>" ID="Hidden14">
	<input name="CFID" type="hidden" ID="Hidden15">
	<input name="JobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="Hidden16">	
	<input name="bSendEmail" type="hidden" ID="bSendEmail">
	<input name="CandidateNames" type="hidden" ID="CandidateNames">
	<input name="JobName" type="hidden" ID="JobName" value="<%=sJobName%>">
</form>
<form name="ReadStatusForm" autocomplete="off" action="Applicant_ReadStatusSubmit.asp?<%=Global_Random%>" method="post" target="XMLSubmit" ID="Form4">
	<input name="CID" type="hidden" ID="Hidden17">
	<input name="JobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="Hidden18">
</form>
<form autocomplete="off" name="ViewStatusForm" action="UserDefinedView/UpdateViewStatus_Submit.asp?<%= Global_Random %>>" method="post" target="XMLSubmit" id="Form5">
	<input type="hidden" name="ViewStatus" ID="Hidden19">
</form>
<form autocomplete="off" name="VerifyEmailForm" action="Applicant_Submit.asp?<%= Global_Random %>>" method="post" target="XMLSubmit" id="Form6">
    <input name="XMLAction" type="hidden" value="4" ID="Hidden30">
	<input type="hidden" name="CID" ID="CID"/>
	<input type="hidden" name="ApplicantType" ID="Hidden31"/>
	<input name="EID" type="hidden" value="<%=Request.QueryString("EID")%>" ID="Hidden29">
</form>
<form name="ReferralRequestForm" autocomplete = "off" action = "/recruiter/CandidateProfile_V2/ReferralRequest/ReferralRequest_Submit.asp?<%=Global_Random%>" method="post" target="BlacklistSubmit" id="ReferralRequestForm">
	<input name="RRCID" type="hidden" ID="RRCID">
	<input name="RREID" type="hidden" value="<%=Request.QueryString("EID")%>" ID="RREID">
	<input name="RRJobID" type="hidden" value="<%=Request.QueryString("JobID")%>" ID="RRJobID">	
	<input name="RefereeEmail" type="hidden" id = "RefereeEmail" >
	<input name="RefereeName" type="hidden" id ="RefereeName">
	<input name="RRAccountID" type="hidden" id="RRAccountID" value="<%=Global_AccountID%>">
	<input name="RRLangID" type="hidden" id="RRLangID" value="<%=Global_Lang%>">
</form>
<form autocomplete="off"  name="OfferLetterConfirmationForm" action="/recruiter/MyDimension_V2/Offer/NewListOffer/ListOffer_Submit.asp?<%= Global_Random %>" method="post" target="XMLSubmit" ID="Form7">
<input type="hidden" name="AccountID" ID="Hidden34">
<input type="hidden" name="EntityID" value="<%=Global_EntityID%>" ID="Hidden35">
<input type="hidden" name="OfferIDs" ID="Hidden36">
<input type="hidden" name="JobIDs" ID="Hidden37">
<input type="hidden" name="CandidateIDs" ID="Hidden38">
<input type="hidden" name="ETID" ID="Hidden39">
</form>

<form autocomplete="off" name="ExortDataAndTransferForm" action="Applicant_Submit.asp?<%= Global_Random %>>" method="post" target="XMLSubmit" id="Form8">
	<input type="hidden" name="CID" id="Hidden41">
	<input type="hidden" name="JobID" id="Hidden42">
	<input type="hidden" name="XMLAction" value="18" id="Hidden43">
</form>

<form autocomplete="off" name="RunAutoClassficationForm" action="RunAutoClassfication_Submit.asp?<%= Global_Random %>" method="post" target="XMLSubmit" id="Form9">
	<input type="hidden" name="CandidateID" id="Hidden44">
	<input type="hidden" name="JIDS" value="<%=Request.QueryString("JobID")%>" id="Hidden45">
	<input type="hidden" name="EntityIDs" value="<%=Global_EntityID%>" id="Hidden46">
	<input type="hidden" name="JobPostType" value="1" ID="JobPostType"> 
	<input type="hidden" name="StatusID" value="<%=Request.QueryString("Status") %>" id="Hidden48">
</form>

</body>
<% Call LangPackEnd() %>
</html>
<%

	Sub GetJobInfo
		Dim oConn, oRs
		Set oConn = Server.CreateObject("ADODB.Connection")
		Set oRs = Server.CreateObject("ADODB.Connection")
		Set oConn = DMConn(Global_AccountID)
		Set oRs = oConn.Execute("usp_Job_Applicant_GetJobInfo " & Global_AccountID & "," & Request.QueryString("EID") & "," & Request.QueryString("JobID") & "," & Global_EntityID & "," & Global_DMUserID & "," & Global_Lang)	
		If Not oRs.EOF Then
			GetJobPositionName = ReplaceChar(oRs("PositionName"))
			sJobName = Mid(oRs("PositionName"),  InStrRev(oRs("PositionName"),">")+1  ) 
			GetJobEditable = oRs("Editable")
		Else
			GetJobPositionName = ""
			sJobName = ""
			GetJobEditable = "N"
		End If
		oRs.close
		Set oRs = Nothing
		Set oConn = Nothing
			
	End Sub
	
	Function GetFieldStr

		Dim oConn, oCmd, CheckField

		CheckField = "38,22,35,39,40,26,43,3"
		
		Set oConn = Server.CreateObject("ADODB.Connection")
		Set oConn = DMConn(Global_AccountID)

		Set oCmd = Server.CreateObject("ADODB.Command")
		With oCmd
			.Parameters.Append .CreateParameter("RETURN_VALUE", adInteger, adParamReturnValue, 0)
			.Parameters.Append .CreateParameter("@AccountID", adInteger, adParamInput, 4, Global_AccountID)
			.Parameters.Append .CreateParameter("@EntityID", adInteger, adParamInput, 4, Global_EntityID)
			.Parameters.Append .CreateParameter("@DMUserID", adInteger, adParamInput, 4, Global_DMUserID)
			.Parameters.Append .CreateParameter("@FieldStr", advarchar, adParamInput, 8000, CheckField)
			.Parameters.Append .CreateParameter("@OutputFieldStr", advarchar, adParamOutput, 8000, null)
			.CommandText = "usp_Sys_GetFieldAccessRight"
			.CommandType = adCmdStoredProc
			.ActiveConnection = oConn
			.Execute
			GetFieldStr = .Parameters("@OutputFieldStr")
		End With
		Set oCmd = Nothing
		Set oConn = Nothing

	End Function
	
	Function CheckHasProtectedFolder
		Dim oConn, oCmd, oRs 

		Set oConn = Server.CreateObject("ADODB.Connection")
		Set oConn = DMConn(Global_AccountID)
		Set oRs = Server.CreateObject("ADODB.Connection")
		
		Set oCmd = Server.CreateObject("ADODB.Command")
		With oCmd
			.Parameters.Append .CreateParameter("@AccountID", adInteger, adParamInput, 4, Global_AccountID)
			.Parameters.Append .CreateParameter("@EntityID", adInteger, adParamInput, 4, Global_EntityID)
			.Parameters.Append .CreateParameter("@DMUserID", adInteger, adParamInput, 4, Global_DMUserID)
			.Parameters.Append .CreateParameter("@JobID", adInteger, adParamInput, 4, Request.QueryString("JobID"))
			.Parameters.Append .CreateParameter("@LangID", adInteger, adParamInput, 4, Global_Lang)
			.CommandText = "usp_Job_Applicant_CheckHasProtectedFolder_User"
			.CommandType = adCmdStoredProc
			.ActiveConnection = oConn
			
			Set oRs = .Execute

		End With
		
		If Not oRs.EOF Then
			CheckHasProtectedFolder = 1
		Else
			CheckHasProtectedFolder = 0
		End If		
		
		Set oCmd = Nothing
		Set oConn = Nothing
	End Function

	Sub GetDataHead(idname)
		Dim FieldArray, i
		
		FieldArray = Split(FieldStr, ",")
		
		For i=0 to UBound(FieldArray)
			response.write "<col id=""" & idname & """ width="""
			Select Case FieldArray(i)
				Case 38 'Latest Position
					response.write "180px"
				Case 22 'Education Level
					response.write "100px"
				Case 35 'Year of Exp
					response.write "50px"
				Case 39 'Latest Salary
					response.write "100px"
				Case 40 'Expected Salary
					response.write "100px"
				Case 26 'Availiability
					response.write "80px"
				Case 43 'Age
					response.write "50px"
				Case 3 'Gender
					response.write "50px"
			End Select
			response.write """/>"
		Next	
	End Sub
	

	Sub GetDataColumn(item) 
		Dim FieldArray, i
		FieldArray = Split(FieldStr, ",")
	  
		For i=0 to UBound(FieldArray)
			If item = "sort" Then
				response.write "<td class=dataHead><Dimension:resizeBorder type=Border resizable=1 />"
			End If

			Select Case FieldArray(i)
				Case 38 'Latest Position
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=LPos value=""" & Global_oLangPack.selectSingleNode("LP0010").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=LPos class=dataText /></td>"
					End If
				Case 22 'Education Level
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=EdLevel value=""" & Global_oLangPack.selectSingleNode("LP0011").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=EdLevel class=dataText /></td>"
					End If
				Case 35 'Year of Exp
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=YrExp value=""" & Global_oLangPack.selectSingleNode("LP0012").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=YrExp class=dataText /></td>"
					End If
				Case 39 'Latest Salary
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=LSalary value=""" & Global_oLangPack.selectSingleNode("LP0013").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=LSalary class=dataText /></td>"
					End If
				Case 40 'Expected Salary
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=ExpSalary value=""" & Global_oLangPack.selectSingleNode("LP0014").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=ExpSalary class=dataText /></td>"
					End If
				Case 26 'Availability
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=Availability value=""" & Global_oLangPack.selectSingleNode("LP0015").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=Availability class=dataText /></td>"
					End If
				Case 43 'Age
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=Age value=""" & Global_oLangPack.selectSingleNode("LP0016").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=Age class=dataText /></td>"
					End If
				Case 3 'Gender
					If item = "sort" Then
						response.write "<Dimension:sortButton type=Button sortValue=Gender value=""" & Global_oLangPack.selectSingleNode("LP0017").text & """ />"
					Else
						response.write 	"<td class=dataText><div nowrap datafld=Gender class=dataText /></td>"
					End If
			End Select

			If item = "sort" Then
				response.write "</td>"
			End If
		Next
	End Sub
%>
<script>
function killErrors() {return true;}window.onerror = killErrors;
</script>
